<template>
  <div class="myBankcard">
    <div class="headerBox">
      <van-nav-bar
        title="我的银行卡"
        left-arrow
        @click-left="onClickLeft"
      ></van-nav-bar>
    </div>
    <div class="" v-if="type"></div>
    <div class="noWallet" v-else>
      <img src="../../assets/img/user/img_wuka.png" alt="">
      <p>您还没有添加银行卡哦</p>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      type: true
    };
  },
  created() {
    this.setUserInfo();
  },
  methods: {
    async setUserInfo() {
      let self = this
      let res = await this.$http.getUserInfo()
      if (res) {
        console.log(res)
        this.userInfo = res.data
        if (this.userInfo.inside_user_id_card_no && this.userInfo.inside_user_real_name) {
          this.type = false
        }
      }
    },
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>
<style scoped>
.myBankcard {
  height: 100vh;
}
</style>
